<?php
/**
 * App bootstrap file.
 *
 * @author Pavel <dew.pavel.wo@gmail.com>
 */

require(__DIR__ . '/BaseApp.php');

/**
 * App is a helper class serving common framework functionalities.
 *
 * It extends from [[BaseApp]] which provides the actual implementation.
 * By writing your own App class, you can customize some functionalities of [[BaseApp]].
 */
class App extends BaseApp
{
}

/**
 * Load config.
 */
$config = require(APP_PATH . '/config/common.php');

/**
 * Include function.
 */
require(APP_PATH . '/func.php');

/**
 * Init application.
 */
App::init( $config );
App::$classMap = include(__DIR__ . '/classes.php');

spl_autoload_register(array('App', 'autoload'), true, true);